Beginning GraphQL: Fetch data faster and more efficiently whilst improving the overall performance of your web application by Brian Kimokoti
Author:Brian Kimokoti [Kimokoti, Brian]
Language: eng
Format: epub
Tags: COM060160 - COMPUTERS / Web / Web Programming, COM060080 - COMPUTERS / Web / General, COM051010 - COMPUTERS / Programming Languages / General
Publisher: Packt Publishing
Published: 2018-07-25T23:00:00+00:00
functions:
hello:
handler:
code: src/hello.js
type: resolver
schema: src/hello.graphql
Each resolver can add a single query or mutation field to the GraphQL API, and this field takes in scalar arguments and returns a type that is specified in the same Schema Definition Language (SDL) document. The limitation is that only one query or mutation field can be added and the input can only be a scalar type.
Hooks: These execute before or after an API operation has been executed. They are mostly used to validate request data and format responses. Two types of hook points exist, operationBefore and operationAfter, and they are invoked before and after a write to the database, respectively. Hook functions need to specify an additional operation field that contains the model and specific database operation, for example, User.create. The following shows an example of an operationBefore hook that is executed before a user is created:
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
The Mikado Method by Ola Ellnestam Daniel Brolund(27096)
Hello! Python by Anthony Briggs(25951)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(25287)
Kotlin in Action by Dmitry Jemerov(24397)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(23592)
Dependency Injection in .NET by Mark Seemann(23313)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(21949)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(20852)
Grails in Action by Glen Smith Peter Ledbrook(19870)
Adobe Camera Raw For Digital Photographers Only by Rob Sheppard(17074)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(16833)
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(14464)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(12585)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(11867)
A Developer's Guide to Building Resilient Cloud Applications with Azure by Hamida Rebai Trabelsi(10652)
Hit Refresh by Satya Nadella(9239)
The Kubernetes Operator Framework Book by Michael Dame(8589)
Exploring Deepfakes by Bryan Lyon and Matt Tora(8446)
Robo-Advisor with Python by Aki Ranin(8391)